#include <wshygp.hpp>
Public Member Functions | |
WshygpParser () | |
virtual | ~WshygpParser () |
void | extract (_data_struct &data_struct, gridpack::component::DataCollection *data, int g_id) |
void | parse (std::vector< std::string > &split_line, gridpack::component::DataCollection *data, int g_id) |
void | store (std::vector< std::string > &split_line, _data_struct &data) |
gridpack::parser::WshygpParser< _data_struct >::WshygpParser | ( | ) | [explicit] |
Constructor
virtual gridpack::parser::WshygpParser< _data_struct >::~WshygpParser | ( | ) | [virtual] |
Destructor
void gridpack::parser::WshygpParser< _data_struct >::extract | ( | _data_struct & | data_struct, | |
gridpack::component::DataCollection * | data, | |||
int | g_id | |||
) |
Extract data from _data_struct and store it in data collection object
data_struct | data struct object | |
data | data collection object | |
gen_id | index of generator |
References gridpack::component::DataCollection::addValue(), gridpack::component::DataCollection::getValue(), GOVERNOR_ATURB, GOVERNOR_BTURB, GOVERNOR_DB1, GOVERNOR_DB2, GOVERNOR_ERR, GOVERNOR_GV1, GOVERNOR_GV2, GOVERNOR_GV3, GOVERNOR_GV4, GOVERNOR_GV5, GOVERNOR_KD, GOVERNOR_KG, GOVERNOR_KI, GOVERNOR_KP, GOVERNOR_MODEL, GOVERNOR_PGV1, GOVERNOR_PGV2, GOVERNOR_PGV3, GOVERNOR_PGV4, GOVERNOR_PGV5, GOVERNOR_PMAX, GOVERNOR_PMIN, GOVERNOR_R, GOVERNOR_TD, GOVERNOR_TF, GOVERNOR_TP, GOVERNOR_TRATE, GOVERNOR_TT, GOVERNOR_TTURB, GOVERNOR_VELCLOSE, GOVERNOR_VELOPEN, HAS_GOVERNOR, and gridpack::component::DataCollection::setValue().
void gridpack::parser::WshygpParser< _data_struct >::parse | ( | std::vector< std::string > & | split_line, | |
gridpack::component::DataCollection * | data, | |||
int | g_id | |||
) |
Parser list of strings and store results in data collection object
split_line | list of tokens from .dyr file | |
data | data collection object | |
gen_id | index of generator |
References gridpack::component::DataCollection::addValue(), gridpack::component::DataCollection::getValue(), GOVERNOR_ATURB, GOVERNOR_BTURB, GOVERNOR_DB1, GOVERNOR_DB2, GOVERNOR_ERR, GOVERNOR_GV1, GOVERNOR_GV2, GOVERNOR_GV3, GOVERNOR_GV4, GOVERNOR_GV5, GOVERNOR_KD, GOVERNOR_KG, GOVERNOR_KI, GOVERNOR_KP, GOVERNOR_MODEL, GOVERNOR_PGV1, GOVERNOR_PGV2, GOVERNOR_PGV3, GOVERNOR_PGV4, GOVERNOR_PGV5, GOVERNOR_PMAX, GOVERNOR_PMIN, GOVERNOR_R, GOVERNOR_TD, GOVERNOR_TF, GOVERNOR_TP, GOVERNOR_TRATE, GOVERNOR_TT, GOVERNOR_TTURB, GOVERNOR_VELCLOSE, GOVERNOR_VELOPEN, HAS_GOVERNOR, gridpack::component::DataCollection::setValue(), gridpack::utility::StringUtils::toUpper(), and gridpack::utility::StringUtils::trimQuotes().
void gridpack::parser::WshygpParser< _data_struct >::store | ( | std::vector< std::string > & | split_line, | |
_data_struct & | data | |||
) |
Parse list of strings store results in data_struct object
split_line | list of tokens from .dyr file | |
data | data struct that stores information from file |
References gridpack::utility::StringUtils::clean2Char(), gridpack::utility::StringUtils::toUpper(), and gridpack::utility::StringUtils::trimQuotes().